package com.tianshi.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Payments implements Serializable { //支付信息表
    private Long paymentId; //支付ID
    private Long orderId; //订单ID
    private Short paymentMethod; //支付方式 1->微信 2->支付宝 3->银联 4->其他,冗余字段，加快查询速度
    private String paymentSn; //支付单号
    private Double amount; //支付金额
    private Short status; //支付状态 1->待支付 2->已支付 3->已取消
    private LocalDateTime paymentTime; //支付成功的时间
    private  LocalDateTime createdAt; //创建时间
}
